package com.shigi.knapsack;

import com.shigi.problem.Solution;

/**
 * Created by Miroslav Šiagi on 29/09/14.
 */
public class KnapsackSolution extends Solution {

    private int numberOfItems;
    private int totalValue;

    // This variable after mod 2 returns in first step an information whether the first item is included or not
    private int usedItems;
    private long elapsedTime;

    public KnapsackSolution(int id) {
        super(id);
    }


    public int getNumberOfItems() {
        return numberOfItems;
    }

    public void setNumberOfItems(int numberOfItems) {
        this.numberOfItems = numberOfItems;
    }

    public int getTotalValue() {
        return totalValue;
    }

    public void setTotalValue(int totalValue) {
        this.totalValue = totalValue;
    }

    public int getUsedItems() {
        return usedItems;
    }

    public void setUsedItems(int usedItems) {
        this.usedItems = usedItems;
    }

    public long getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }
}
